/*
 *      itrans.cpp
 *      
 *      Copyright 2011 Long <tqlong@cs.etintin.com>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

#include <iostream>
#include <boost/program_options.hpp>
using namespace std;

boost::program_options::options_description desc("Allowed options");
boost::program_options::variables_map vm;

void process_options(int argc, char** argv)
{
  desc.add_options()
      ("help", "produce help message")
      ("in", boost::program_options::value<string>() ,"file consists of text in original language")
      ("out", boost::program_options::value<string>()->default_value("out.txt") ,"file consists of being translated text")
      ("lin", boost::program_options::value<string>()->default_value("en") ,"original language")
      ("lout", boost::program_options::value<string>()->default_value("vi") , "destination language")
      ;

  boost::program_options::store(boost::program_options::parse_command_line(argc, argv, desc), vm);
  boost::program_options::notify(vm);

  if (vm.count("help"))
  {
    cout << desc << endl;
    exit(1); 
  }
}

int main(int argc, char** argv)
{
  process_options(argc, argv);
  cout << "iTranslator processing...\n";
  return 0;
}
